package com.shortchainsystem.model.domain.link.DO;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.HashMap;
import java.util.Map;

@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
public class BrowserStatsDO {
    private String browser;
    private Integer count;

    public static Map<String,Integer> createBrowserMap(){
        Map<String,Integer> browserMap = new HashMap<>();
        browserMap.put("Chrome", 0);
        browserMap.put("Firefox", 0);
        browserMap.put("Safari", 0);
        browserMap.put("Edge", 0);
        browserMap.put("Opera", 0);
        browserMap.put("Unknown",0);
        browserMap.put("Other", 0);
        return browserMap;
    }
}
